/**
 * Created by zander on 2017/11/16.
 */
function bt() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="btApi" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function qa() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="error" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function selfAPI() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="self_api" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function rd() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="error" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function rdOneCredit() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdOneCredit" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function rdOneAuth() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdOneAuth" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function weshareMiniProgram() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="weshareMiniProgram" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function zxrw() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="task" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function zxrz() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="log" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function zsjg() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="error" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function xgmm() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="updataPwd" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function uiBt() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="uiTest" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function selfc2auth() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="selfC2auth" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function clearBT() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="clearUserData" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function clearRD() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdClearUserInFo" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function clearQA() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="QAclearUserData" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function rdOneCredit() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdOneCredit" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function rdOneAuth() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdOneAuth" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function onlineOneCredit() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="onlineOneCredit" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function onlineOneAuth() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="onlineOneAuth" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}
function registrationIdentity() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="registrationIdentity" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}


function rdAllAuth() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdAllAuth" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function rdApi() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="rdApi" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function anyproxyLog() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="anyproxyLog" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function report() {
    var elementObject = document.getElementById("rightHtml");
    var strIframe = '<iframe class="ifa"  src="report" frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function viewLog(id) {
    var id = id
    var elementObject = document.getElementById("rightHtml");
    var src = "/anyproxyLog?id="+id
    var strIframe = '<iframe class="ifa"  src=src frameborder="0"></iframe>';
    elementObject.innerHTML = strIframe;
}

function getMyName() {
    $.ajax({
        url: "/returnName",
        type: "GET",
        dataType: 'json',
        success: function (ret) {
            var myName = ret['username'];
            var localStorage = window.localStorage;
            localStorage.setItem('name', myName);
            document.getElementById("username").innerHTML = myName
        },
        error: function () {
            alert("Error 500,请联系开发人员！")
        }
    });
}

window.onload = getMyName();



